﻿using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPAIS.DbAccessor
{
    public interface IDbAccessor
    {
        /// <summary>
        /// Creates a database connection.
        /// </summary>
        DbConnection CreateConnection();

        /// <summary>
        /// Creates a command.
        /// </summary>
        DbCommand CreateCommand();

        /// <summary>
        /// Creates a data adapter.
        /// </summary>
        DbDataAdapter CreateDataAdapter(DbCommand cmd);
    }
}
